

import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.nio.channels.SocketChannel;
import java.util.Vector;



public class DataServerCommunication extends Thread {
	
	private ObjectOutputStream objOut;
	private ObjectInputStream objIn;
	private SocketChannel clientSocket;
	private String fileName;
	private String hostName;
	private int port;
	
	public DataServerCommunication(String fileName, DataServerInfo dsHostPort){
		this.fileName = fileName;
		this.clientSocket = dsHostPort.getDataSocket();
		this.objOut = dsHostPort.getObjOutputStream();
		this.objIn = dsHostPort.getObjInputStream();
		
	}
	
	public void run(){
		try{			
			
			OutputStream out = clientSocket.socket().getOutputStream();
			InputStream in = clientSocket.socket().getInputStream();
			
			objOut.writeObject("Hello from pinging");
		}catch(Exception e){
			
		}
	}
	

}
